-
Notifications
You must be signed in to change notification settings - Fork 6k
Conversation
lib/ui/painting.dart
Outdated
| final int _type; | ||
|
|
||
| // The type of SkColorFilter class to create for Skia. | ||
| // These constants must be kept in sync with ColorFilterType in paint.cc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is no longer true and should just be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
lib/ui/painting.dart
Outdated
| // ignore:unused_field | ||
| static const int _TypeNone = 0; // null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than adding an ignore, let's just remove the unused field.
We should also do the same in the web_ui painting.dart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no _TypeNone in web_ui painting.dart as far as I can tell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than adding an ignore, let's just remove the unused field.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's in lib/web_ui/lib/src/engine/color_filter.dart, line 118
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, got you. Interestingly this is not picked up by analyzer as unused field.
dnfield
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
_TypeNone is not used and that triggers hint in dart analyzer since dart 2.7.0